<table>
    <tbody>
    
        <tr class="prop">
            <td class="name">
                <label for="contract"><g:message code="b2b.contractDetail.contract.label" default="Contract" /></label>
            </td>
            <td class="value ${hasErrors(bean: contractDetailInstance, field: 'contract', 'errors')}">
                <g:select name="contract.id" from="${org.icress.fusion.b2b.Contract.list()}" optionKey="id" value="${contractDetailInstance?.contract?.id}"  />
            </td>
            <td class="name">
                <label for="serialNumber"><g:message code="b2b.contractDetail.serialNumber.label" default="Serial Number" /></label>
            </td>
            <td class="value ${hasErrors(bean: contractDetailInstance, field: 'serialNumber', 'errors')}">
                <g:textField name="serialNumber" maxlength="2" value="${contractDetailInstance?.serialNumber}" />
            </td>
        </tr>
    
        <tr class="prop">
            <td class="name">
                <label for="family"><g:message code="b2b.contractDetail.family.label" default="Family" /></label>
            </td>
            <td class="value ${hasErrors(bean: contractDetailInstance, field: 'family', 'errors')}">
                <g:textField name="family" maxlength="20" value="${contractDetailInstance?.family}" />
            </td>
            <td class="name">
                <label for="discount"><g:message code="b2b.contractDetail.discount.label" default="Discount" /></label>
            </td>
            <td class="value ${hasErrors(bean: contractDetailInstance, field: 'discount', 'errors')}">
                <g:textField name="discount" value="${fieldValue(bean: contractDetailInstance, field: 'discount')}" />
            </td>
        </tr>
    
        <tr class="prop">
            <td class="name">
                <label for="specialDiscount"><g:message code="b2b.contractDetail.specialDiscount.label" default="Special Discount" /></label>
            </td>
            <td class="value ${hasErrors(bean: contractDetailInstance, field: 'specialDiscount', 'errors')}">
                <g:textField name="specialDiscount" value="${fieldValue(bean: contractDetailInstance, field: 'specialDiscount')}" />
            </td>
            <td class="name">
                <label for="finalDiscount"><g:message code="b2b.contractDetail.finalDiscount.label" default="Final Discount" /></label>
            </td>
            <td class="value ${hasErrors(bean: contractDetailInstance, field: 'finalDiscount', 'errors')}">
                <g:textField name="finalDiscount" value="${fieldValue(bean: contractDetailInstance, field: 'finalDiscount')}" />
            </td>

        </tr>
    
    </tbody>
</table>